package com.gxuwz.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gxuwz.core.dao.impl.BaseDaoImpl;
import com.gxuwz.pojo.Form;
import com.gxuwz.pojo.SysUser;

@Repository("sysUserDao")
public class SysUserDao extends BaseDaoImpl<SysUser> {

	public List<SysUser> findByProperty(String property, String value) {
		StringBuffer hql = new StringBuffer("from SysUser where ");
		hql.append(property);
		hql.append(" = '");
		hql.append(value);
		hql.append("' ");
		return (List<SysUser>) getHibernateTemplate().find(hql.toString());
	}

}
